<?php
if (eregi("settings_layout.php",$HTTP_SERVER_VARS['PHP_SELF']) || eregi("settings_layout.php",$_SERVER['PHP_SELF'])) {
	echo "<html>\r\n<head>\r\n<title>Invalid Access</title>\r\n</head>\r\n<body><h3>Invalid Access</h3>\r\nInvalid Access of this file is forbidden.\r\n</body>\r\n</html>";
	exit;
}

?>
<div class="module_title" style="margin-left:8px;">Site Configurations</div>
<?php

if(isset($_SESSION['error']))
{
    echo "<div style=\"font-size:12px;  margin-left:7px; color:#FF0000\">".$_SESSION['error']."</div>";
	unset($_SESSION['error']);
}elseif(isset($_SESSION['msg']))
{
    echo "<div style=\"font-size:12px; margin-left:7px; color:#0000FF\">".$_SESSION['msg']."</div>";
	unset($_SESSION['msg']);

}
?>
<form action="index.php?m=settings" method="post">
<table class="settings_table" cellspacing="10">
<tr><td>&nbsp;</td><td><b><a href="index.php?m=change_password">Change Admin Password</a></b></td></tr>

<tr><td>SITE NAME <div style="font-size:12px; font-style:italic; color:#999">(Only Letters, Numbers, Hyphen(-) & underscore(_)<br /> dont use Spaces. e.g: HotShareCash)</div></td><td><input type="text" name="site_name" value="<?=SITE_NAME?>"></td></tr>
<tr><td>SITE URL <div style="font-size:12px; font-style:italic; color:#999">Website url including http:// and end trailing slash like http://www.yoursite.com/</div></td><td><input type="text" name="site_url" value="<?=SITE_URL?>"></td></tr>
<tr><td>SITE DESCRIPTION</td><td><input type="text" name="site_description" value="<?=SITE_DESCRIPTION?>"></td></tr>
<tr><td>SITE KEYWORDS <br />(separated by commer i.e word1, word2, word3)</td><td><input type="text" name="site_keywords" value="<?=SITE_KEYWORDS?>"></td></tr>
<tr><td>NOTIFICATION EMAIL <br />(this would be used for all notification send to users)</td><td><input type="text" name="notification_email" value="<?=NOTIFICATION_EMAIL?>"></td></tr>
<tr><td>ADMIN EMAIL <br />(this would be used to send message to Admin)</td><td><input type="text" name="admin_email" value="<?=ADMIN_EMAIL?>"></td></tr>


<tr><td>SIGNUPS AUTO APPROVE <div style="font-size:12px; font-style:italic; color:#999">(if you uncheck this option, you will need to approve user accounts manually)</div></td><td><input type="checkbox" name="auto_approve" value="1" <?php if(AUTO_APPROVE == 1) echo 'checked="checked"' ?>  /></td></tr>


<tr><td>MINIMUM CASHOUT LIMIT </td><td><input type="text" name="min_cashout_limit" value="<?=MIN_CASHOUT_LIMIT?>"></td></tr>




<tr><td>BUSINESS PAYPAL EMAIL </td><td><input type="text" name="business_paypal_email" value="<?=BUSINESS_PAYPAL_EMAIL?>"></td></tr>
<tr><td>ALLOW MESSAGING </td><td><input type="checkbox" name="allow_messaging" value="1" <?php if(ALLOW_MESSAGING == 1) echo 'checked="checked"' ?>  /></td></tr>
<tr><td>QUICK PAYOUTS AVAILABLE </td><td><input type="checkbox" name="quick_pay_available" value="1" <?php if(QUICK_PAY_AVAILABLE == 1) echo 'checked="checked"' ?>  /></td></tr>
<tr><td>QUICK PAYOUT FLAT FEE<div style="font-size:12px; font-style:italic; color:#999">(Flat fee to charge user if quick payout is requested,<br /> leave it empty or 0 if you have set percent fee or no fee on quick payout)</div></td><td><input type="text" name="quick_pay_flat_fee" value="<?=QUICK_PAY_FLAT_FEE?>"></td></tr>
<tr><td>QUICK PAYOUT  FEE<div style="font-size:12px; font-style:italic; color:#999">(Percentage fee to charge user if quick payout is requested,<br /> leave it empty or 0 if you have set flat fee or no fee on quick payout)</div></td><td><input type="text" name="quick_pay_fee" value="<?=QUICK_PAY_FEE?>"></td></tr>





<tr><td>PREMIUM LINK UNLOCK AVAILABLE </td><td><input type="checkbox" name="premium_link_unlock" value="1" <?php if(PREMIUM_LINK_UNLOCK == 1) echo 'checked="checked"' ?>  /></td></tr>


<tr><td>OFFER PAYOUT RATE <div style="font-size:12px; font-style:italic; color:#999">(How much % user will earn from each lead)</div></td><td><input type="text" name="offer_rate" value="<?=OFFER_RATE?>"></td></tr>


<tr><td>REFERRAL RATE <div style="font-size:12px; font-style:italic; color:#999">(How much % user will earn from each referral)</div></td><td><input type="text" name="referral_rate" value="<?=REFERRAL_RATE?>"></td></tr>

<tr><td>PREMIUM RATE <div style="font-size:12px; font-style:italic; color:#999">(How much % user will earn from each premium signup)</div></td><td><input type="text" name="premium_rate" value="<?=PREMIUM_RATE?>"></td></tr>



<tr><td>Cashout Form Dates<div style="font-size:12px; font-style:italic; color:#999">(When to show cashout form - enter 0 to show every day)</div></td><td><input type="text" name="c_date1" value="<?=C_DATE1?>" maxlength="2" style="width:30px" /> To <input type="text" name="c_date2" value="<?=C_DATE2?>"  maxlength="2" style="width:30px" /></td></tr>




<tr><td colspan="2" style="text-align:right; padding-top:5px;"><input type="submit" name="update" value="UPDATE SETTINGS" /></td></tr>
</table>

</form>